# -*- coding: utf-8 -*-
from odoo import models, fields, api


class IrHttp(models.AbstractModel):
    _inherit = 'ir.http'

    def session_info(self):
        res = super().session_info()
        ICP = self.env['ir.config_parameter'].sudo()
        res['system_name'] = ICP.get_param('system.name', 'FKC')
        return res

    def webclient_rendering_context(self):
        context = super().webclient_rendering_context()
        context['title'] = self.env['ir.config_parameter'].sudo().get_param('system.name', 'FKC')
        return context
